package com.th.supcom.pds.config.client.service;

import java.util.List;

import net.carefx.framework.container.client.exception.UiException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;
import com.th.supcom.pds.config.client.common.PhamConfigServiceFactory;
import com.th.supcom.pds.config.client.model.PhamWindowConfigModel;

/**
 * PhamWindowConfig 服务接口.
 * 
 * 药房窗口属性列表.
 */
@RemoteServiceRelativePath (PhamConfigServiceFactory.BASE_URL + "phamWindowConfig.do")
public interface PhamWindowConfigRpc extends RemoteService
{

    /** 公司版权信息. */
    public static final String copyright = "Copyright 2014, TH Supcom Corporation";

    /** 提交路径. */
    public static final String SCC_BRANCH = "$URL$";

    /** 提交日期. */
    public static final String SCC_LAST_MODIFICATION_DATE = "$Date$";

    /** 最终修改人员. */
    public static final String SCC_LAST_MODIFIER_NAME = "$Author$";

    /** 最终版本号. */
    public static final String SCC_REVISION = "$Revision$";

    /**
     * 添加信息.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public void addPhamWindowConfig (PhamWindowConfigModel model) throws UiException;

    /**
     * 根据查询条件获取药房窗口属性列表
     * 
     * @param phamWindowConfig
     * @return
     */
    public List <PhamWindowConfigModel> findPhamWindowConfigByExample (PhamWindowConfigModel model) throws UiException;

    /**
     * 查询信息.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public PhamWindowConfigModel getPhamWindowConfigById (Long id) throws UiException;

    /**
     * 修改信息.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public void modifyPhamWindowConfig (PhamWindowConfigModel model) throws UiException;

    /**
     * 修改信息,有值才更新.
     * 
     * @param Model
     * @throws UiException 界面异常
     */
    public void modifyPhamWindowConfigByExample (PhamWindowConfigModel model) throws UiException;

    /**
     * 删除信息.
     * 
     * @param code
     * @throws UiException 界面异常
     */
    public void removePhamWindowConfig (Long id) throws UiException;
}